package com.qfedu.hotelssm.dto;

import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @author dzl
 * @date 2022/8/31 15:20
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@ColumnWidth(20)
public class CtStokeDto {
    //库存id
    @ExcelProperty(value = "编号")
    private Integer id;
    //存货名称
    @ExcelProperty(value = "名称")
    private String name;
    //存货数量
    @ExcelProperty(value = "数量")
    private Integer num;
    //存货价格
    @ExcelProperty(value = "价格")
    private Double price;
    //存货种类
    @ExcelProperty(value = "种类")
    private String kind;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd")//返回
    //统计时间
    @ExcelProperty(value = "统计时间")
    private Date ctime;
}
